<?php
/**
 * Is Logged In Action Helper
 * This is used to determine if there is a user currently authenticated within
 * the system (logged in). 
 *
 * @package     Visi
 * @subpackage  Action Helpers
 * @author      Luke Visinoni <luke.visinoni@gmail.com>
 * @copyright   (c) 2010 Luke Visinoni <luke.visinoni@gmail.com>
 * @version     $Id$
 */
class Visi_Controller_Action_Helper_IsLoggedIn extends Zend_Controller_Action_Helper_Abstract {

    public function direct() {
    
        $auth = Zend_Auth::getInstance();
        return $auth->hasIdentity();
    
    }

}